﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/common/head.jsp" %>

<div class="right">
    <div class="location">
        <strong>当前位置:</strong>
        <span>用户管理页面 >> 用户添加页面</span>
    </div>
    <div class="supplierAdd">
        <form id="userForm" name="userForm" enctype="multipart/form-data" method="post" action="${pageContext.request.contextPath }/user/toSave">
            <!--div的class 为error是验证错误，ok是验证成功-->
            <div>
                <label for="username">账号：</label>
                <input type="text" name="username" id="username">
                <!-- 放置提示信息 -->
                <font color="red"></font>
            </div>
            <div>
                <label for="password">密码：</label>
                <input type="password" name="password" id="password">
                <font color="red"></font>
            </div>
            <div>
                <label >性别：</label>
                <select name="sex" id="sex">
                    <option value="1" selected="selected">女</option>
                    <option value="2">男</option>
                </select>
            </div>
            <div>
                <label for="age">年龄：</label>
                <input type="text" Class="Wdate" id="age" name="age">
                <font color="red"></font>
            </div>
            <div>
                <label for="telephone">手机号码：</label>
                <input type="text" name="telephone" id="telephone">
                <font color="red"></font>
            </div>
            <div>
                <label for="address">地址：</label>
                <input name="address" id="address">
            </div>
            <div>
                <label for="email">邮箱：</label>
                <input name="email" id="email">
            </div>
            <div>
                <label for="workPic">照片：</label>
                <input type="file" name="workPic" id="workPic"/>
                <font color="red"></font>
            </div>
            <div class="supplierAddBtn">
                <input type="button" name="add" id="add" value="保存" >
                <input type="button" id="back" name="back" value="返回" >
            </div>
        </form>
    </div>
</div>
</section>
<%@include file="/WEB-INF/jsp/common/foot.jsp" %>
<script type="text/javascript" src="${pageContext.request.contextPath }/statics/js/user/add.js"></script>
